package org.sith.taskrunner.listeners;

import org.sith.taskrunner.ejb.UserThreadKeeper;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
import javax.servlet.http.HttpSessionBindingEvent;

public class UserRequestListener implements ServletRequestListener{


    @Override
    public void requestDestroyed(ServletRequestEvent servletRequestEvent) {
        UserThreadKeeper.clear();
    }

    @Override
    public void requestInitialized(ServletRequestEvent servletRequestEvent) {

    }
}
